import { patentInfo,getCompanyPatentPayment } from '@/util/api/patent'
export default {
  data() {
    return {
      id: '',
      detailInfo: {}
    }
  },
  onLoad(e) {
    this.id = e.id
    this.getDetail()
  },
  methods: {
    getDetail() {
      getCompanyPatentPayment({applicationNumber: this.id}).then(res=>{
        if(res.code === 200) {
          this.detailInfo = res.result
        } else {
          uni.showToast({
            title: res.message,
            duration: 2000,
            icon: "none"
          });
        }
      })
    },
    toPay() {
      uni.navigateTo({
        url: `/pages/patent/payment/Index?nums=${this.id}`
      })
    }
  }
}